var result_8 = JSON.parse('{"CODE":0, "ACTION":"","LEVEL":"", "MSG":"","DATA":"","RULE":"8"}');

if (!isNull(NEW_RETAIL_EFF_DATE)) {
    if (betweenDay(new Date(NEW_RETAIL_EFF_DATE), new Date()) >= 1) {
        NEW_RETAIL_EFF_DATE = getNewDate(new Date());
        if (isNotEmpty(ITEM_LIST)){
            var parse = JSON.parse(ITEM_LIST);
            for (var par = 0; par < parse.length; par++) {
                var item = parse[par];
                if (isNotEmpty(item.NEW_RETAIL_EFF_DATE) && betweenDay(new Date(item.NEW_RETAIL_EFF_DATE), new Date()) >= 1){
                    item.NEW_RETAIL_EFF_DATE = getNewDate(new Date());
                }
            }
            ITEM_LIST = JSON.stringify(parse);
        }
        result_8.CODE = 3;
        result_8.ACTION = "UPDATE";
        result_8.MSG = "新零售生效日不能小于当天，自动改成当天";
        result_8.DATA = '{"NEW_RETAIL_EFF_DATE":"' + NEW_RETAIL_EFF_DATE + '"}';
    }
}
JSON.stringify(result_8);


